﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECommerce.Factory.Productos
{
    public static class Package
    {
        public static void Load(ECommerce.Model.Productos.Package Package, System.Data.DataRow dr)
        {
            if (dr["CantidadXBulto"] != null)
                Package.CantidadXBulto = Convert.ToInt32(dr["CantidadXBulto"].ToString());
        }
        public static void Load(ECommerce.Model.Productos.Package Package, ECommerce.WebControls.Productos.WebPackage WebPackage)
        {
            Package.CantidadXBulto = Convert.ToDouble(WebPackage.txtCantidadXBulto.Text);
        }
    }
}
